package modeldemo;

import lombok.Data;
import modeldemo.clint.Diaoyon;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @date 2023/3/15 0:37
 * @Modified By :
 */
@Configuration
@ConfigurationProperties("signapi.clint")
@Data
@ComponentScan
public class Signapiconfig{

    private String accessKey;
    private String secretKey;

    @Bean
    public Diaoyon diaoyon() {
        return new Diaoyon(accessKey,secretKey);
    }
}
